"""
XXX DEX PPT Generator - 核心PPT生成器
使用python-pptx创建深色科技风格的演示文稿
"""

from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.dml.color import RGBColor
from pptx.enum.shapes import MSO_SHAPE
import os
from datetime import datetime

class XXXDEXPPTGenerator:
    def __init__(self):
        self.prs = Presentation()
        self.colors = {
            'background': RGBColor(11, 16, 32),      # #0b1020
            'primary': RGBColor(43, 108, 176),       # #2b6cb0
            'accent': RGBColor(0, 194, 168),         # #00c2a8
            'text_primary': RGBColor(255, 255, 255),
            'text_secondary': RGBColor(156, 163, 175)
        }
        
    def create_presentation(self, output_path):
        """创建完整的演示文稿"""
        
        # 设置幻灯片尺寸 (16:9)
        self.prs.slide_width = Inches(13.33)
        self.prs.slide_height = Inches(7.5)
        
        # 创建12张核心幻灯片
        slides = [
            self.create_cover_slide,
            self.create_toc_slide,
            self.create_vision_slide,
            self.create_product_matrix_slide,
            self.create_target_market_slide,
            self.create_trading_products_slide,
            self.create_second_contract_slide,
            self.create_perpetual_contract_slide,
            self.create_commodities_slide,
            self.create_ai_rewards_slide,
            self.create_tech_architecture_slide,
            self.create_team_roadmap_slide
        ]
        
        for slide_func in slides:
            slide_func()
        
        # 保存PPT
        self.prs.save(output_path)
        return output_path
    
    def create_cover_slide(self):
        """创建封面幻灯片"""
        slide_layout = self.prs.slide_layouts[6]  # 空白布局
        slide = self.prs.slides.add_slide(slide_layout)
        
        # 设置背景
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 添加网格背景装饰
        self.add_grid_background(slide)
        
        # 主标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(2.5), Inches(11.33), Inches(1.5))
        title_frame = title_box.text_frame
        title_frame.text = "XXX DEX"
        title_frame.paragraphs[0].font.size = Pt(48)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        title_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
        
        # 副标题
        subtitle_box = slide.shapes.add_textbox(Inches(1), Inches(4), Inches(11.33), Inches(1))
        subtitle_frame = subtitle_box.text_frame
        subtitle_frame.text = "去中心化数字资产交易平台\n秒级交割合约 · 永续衍生品 · AI 驱动 ETH 存储奖励"
        subtitle_frame.paragraphs[0].font.size = Pt(18)
        subtitle_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
        subtitle_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
        
        # Logo占位符
        logo_box = slide.shapes.add_textbox(Inches(0.5), Inches(0.5), Inches(2), Inches(0.5))
        logo_frame = logo_box.text_frame
        logo_frame.text = "[XXX Logo]"
        logo_frame.paragraphs[0].font.size = Pt(14)
        logo_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        
        # 日期和演讲人
        info_box = slide.shapes.add_textbox(Inches(10.33), Inches(6.5), Inches(2.5), Inches(0.5))
        info_frame = info_box.text_frame
        info_frame.text = f"{datetime.now().strftime('%Y.%m.%d')}\n演讲人姓名"
        info_frame.paragraphs[0].font.size = Pt(12)
        info_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
        info_frame.paragraphs[0].alignment = PP_ALIGN.RIGHT
        
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "简短自我介绍，1-2句愿景：去中心化、透明、高流动性"
        
    def create_toc_slide(self):
        """创建目录幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "目录"
        title_frame.paragraphs[0].font.size = Pt(36)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 目录内容
        toc_items = [
            "1. 平台愿景",
            "2. 产品矩阵与差异化",
            "3. 市场与目标用户",
            "4. 交易产品展示（BTC/USDT, ETH/USDT, SOL/USDT）",
            "5. 秒级交割合约细节（时长与收益矩阵）",
            "6. 衍生品与永续合约页示例",
            "7. 大宗商品、原油、黄金/白银 页面",
            "8. AI 量化 ETH 存储奖励机制（技术规范）",
            "9. 技术架构与合约安全",
            "10. 客服与运营流程",
            "11. 团队与顾问",
            "12. 路线图、商业模式、Q&A"
        ]
        
        toc_box = slide.shapes.add_textbox(Inches(1.5), Inches(1.8), Inches(10), Inches(5))
        toc_frame = toc_box.text_frame
        
        for i, item in enumerate(toc_items):
            p = toc_frame.add_paragraph() if i > 0 else toc_frame.paragraphs[0]
            p.text = item
            p.font.size = Pt(16)
            p.font.color.rgb = self.colors['text_secondary']
            p.level = 0
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "说明演讲结构，时长建议20-30分钟"
        
    def create_vision_slide(self):
        """创建平台愿景幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "平台愿景"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 核心内容
        content_box = slide.shapes.add_textbox(Inches(1), Inches(1.8), Inches(5), Inches(4))
        content_frame = content_box.text_frame
        content_frame.text = "核心："
        content_frame.paragraphs[0].font.size = Pt(20)
        content_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        content_frame.paragraphs[0].font.bold = True
        
        core_points = [
            "• 去中心化",
            "• 低滑点",
            "• 高频秒级合约",
            "• 合规化可审计"
        ]
        
        for point in core_points:
            p = content_frame.add_paragraph()
            p.text = point
            p.font.size = Pt(16)
            p.font.color.rgb = self.colors['text_secondary']
            p.level = 1
        
        # 价值内容
        value_box = slide.shapes.add_textbox(Inches(7), Inches(1.8), Inches(5), Inches(4))
        value_frame = value_box.text_frame
        value_frame.text = "价值："
        value_frame.paragraphs[0].font.size = Pt(20)
        value_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        value_frame.paragraphs[0].font.bold = True
        
        value_points = [
            "• 为散户&机构提供",
            "• 安全、透明的",
            "• 合约交易体验"
        ]
        
        for point in value_points:
            p = value_frame.add_paragraph()
            p.text = point
            p.font.size = Pt(16)
            p.font.color.rgb = self.colors['text_secondary']
            p.level = 1
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "强调透明性、链上可审计与多预言机制"
        
    def create_product_matrix_slide(self):
        """创建产品矩阵幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "产品矩阵总览"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 产品列表
        products = [
            ("现货", "BTC/USDT、ETH/USDT、SOL/USDT 等"),
            ("秒级交割合约", "30s/60s/.../420s（固定收益模板）"),
            ("永续合约", "资金费率、杠杆、保险基金、自动清算"),
            ("Tokenized Commodities", "黄金(XAU)、白银(XAG)、原油(WTI/Brent)"),
            ("AI ETH 存储奖励", "策略池 + epoch 结算")
        ]
        
        y_pos = 1.8
        for category, description in products:
            # 类别
            cat_box = slide.shapes.add_textbox(Inches(1), Inches(y_pos), Inches(3), Inches(0.8))
            cat_frame = cat_box.text_frame
            cat_frame.text = category
            cat_frame.paragraphs[0].font.size = Pt(18)
            cat_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            cat_frame.paragraphs[0].font.bold = True
            
            # 描述
            desc_box = slide.shapes.add_textbox(Inches(4.5), Inches(y_pos), Inches(7.5), Inches(0.8))
            desc_frame = desc_box.text_frame
            desc_frame.text = description
            desc_frame.paragraphs[0].font.size = Pt(14)
            desc_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            
            y_pos += 0.9
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "简述每类产品定位与目标人群"
        
    def create_target_market_slide(self):
        """创建目标用户和市场规模幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "目标用户 & 市场规模"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 用户画像
        user_box = slide.shapes.add_textbox(Inches(1), Inches(1.8), Inches(5), Inches(3))
        user_frame = user_box.text_frame
        user_frame.text = "用户画像："
        user_frame.paragraphs[0].font.size = Pt(20)
        user_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        user_frame.paragraphs[0].font.bold = True
        
        users = [
            "• 高频交易者",
            "• 散户/量化",
            "• 做市商",
            "• 机构"
        ]
        
        for user in users:
            p = user_frame.add_paragraph()
            p.text = user
            p.font.size = Pt(16)
            p.font.color.rgb = self.colors['text_secondary']
            p.level = 1
        
        # 市场机会
        market_box = slide.shapes.add_textbox(Inches(7), Inches(1.8), Inches(5), Inches(3))
        market_frame = market_box.text_frame
        market_frame.text = "市场机会："
        market_frame.paragraphs[0].font.size = Pt(20)
        market_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        market_frame.paragraphs[0].font.bold = True
        
        opportunities = [
            "• 期货/衍生品在",
            "• 加密市场中的占比",
            "• 秒级产品的",
            "• 互动性优势"
        ]
        
        for opp in opportunities:
            p = market_frame.add_paragraph()
            p.text = opp
            p.font.size = Pt(16)
            p.font.color.rgb = self.colors['text_secondary']
            p.level = 1
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "展示市场规模数据和增长趋势"
        
    def create_trading_products_slide(self):
        """创建交易产品展示幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "交易产品展示"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 交易对展示
        pairs = ["BTC/USDT", "ETH/USDT", "SOL/USDT"]
        x_pos = 1.5
        
        for pair in pairs:
            # 创建卡片背景
            card = slide.shapes.add_shape(
                MSO_SHAPE.RECTANGLE,
                Inches(x_pos), Inches(2.5),
                Inches(3), Inches(3)
            )
            card.fill.solid()
            card.fill.fore_color.rgb = RGBColor(25, 30, 45)
            card.line.color.rgb = self.colors['primary']
            card.line.width = Pt(2)
            
            # 交易对名称
            pair_box = slide.shapes.add_textbox(
                Inches(x_pos + 0.5), Inches(3.5),
                Inches(2), Inches(0.5)
            )
            pair_frame = pair_box.text_frame
            pair_frame.text = pair
            pair_frame.paragraphs[0].font.size = Pt(20)
            pair_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            pair_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
            
            # 价格占位符
            price_box = slide.shapes.add_textbox(
                Inches(x_pos + 0.5), Inches(4.2),
                Inches(2), Inches(0.5)
            )
            price_frame = price_box.text_frame
            price_frame.text = "$XX,XXX.XX"
            price_frame.paragraphs[0].font.size = Pt(16)
            price_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            price_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
            
            x_pos += 3.5
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "展示主要交易对的实时数据和流动性"
        
    def create_second_contract_slide(self):
        """创建秒级交割合约细节幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "秒级交割合约细节"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 时长矩阵
        durations = [30, 60, 90, 120, 180, 240, 300, 420]
        y_pos = 2
        
        for i, duration in enumerate(durations):
            col = i % 4
            row = i // 4
            x_pos = 1.5 + col * 2.8
            y = y_pos + row * 1.5
            
            # 时长卡片
            card = slide.shapes.add_shape(
                MSO_SHAPE.RECTANGLE,
                Inches(x_pos), Inches(y),
                Inches(2.5), Inches(1.2)
            )
            card.fill.solid()
            card.fill.fore_color.rgb = RGBColor(30, 35, 50)
            card.line.color.rgb = self.colors['primary']
            
            # 时长文本
            dur_box = slide.shapes.add_textbox(
                Inches(x_pos), Inches(y + 0.2),
                Inches(2.5), Inches(0.5)
            )
            dur_frame = dur_box.text_frame
            dur_frame.text = f"{duration}s"
            dur_frame.paragraphs[0].font.size = Pt(16)
            dur_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            dur_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
            
            # 收益率
            profit_box = slide.shapes.add_textbox(
                Inches(x_pos), Inches(y + 0.6),
                Inches(2.5), Inches(0.4)
            )
            profit_frame = profit_box.text_frame
            profit_frame.text = f"+{duration//10}% 固定收益"
            profit_frame.paragraphs[0].font.size = Pt(12)
            profit_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            profit_frame.paragraphs[0].alignment = PP_ALIGN.CENTER
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "详细解释不同时间周期的收益计算方式"
        
    def create_perpetual_contract_slide(self):
        """创建永续合约幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "永续合约特性"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 特性列表
        features = [
            ("资金费率", "每8小时结算，平衡多空"),
            ("杠杆倍数", "最高100x杠杆"),
            ("保险基金", "保护用户免受穿仓风险"),
            ("自动清算", "智能风险管理系统")
        ]
        
        y_pos = 2
        for feature, desc in features:
            # 特性名称
            feat_box = slide.shapes.add_textbox(Inches(1), Inches(y_pos), Inches(3), Inches(0.8))
            feat_frame = feat_box.text_frame
            feat_frame.text = feature
            feat_frame.paragraphs[0].font.size = Pt(18)
            feat_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            feat_frame.paragraphs[0].font.bold = True
            
            # 描述
            desc_box = slide.shapes.add_textbox(Inches(4.5), Inches(y_pos), Inches(7.5), Inches(0.8))
            desc_frame = desc_box.text_frame
            desc_frame.text = desc
            desc_frame.paragraphs[0].font.size = Pt(14)
            desc_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            
            y_pos += 1
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "展示永续合约的风险管理机制"
        
    def create_commodities_slide(self):
        """创建大宗商品幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "Tokenized Commodities"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 商品列表
        commodities = [
            ("黄金 (XAU)", "1:1锚定伦敦金现货价格"),
            ("白银 (XAG)", "1:1锚定伦敦银现货价格"),
            ("原油 (WTI)", "1:1锚定WTI原油期货"),
            ("原油 (Brent)", "1:1锚定布伦特原油期货")
        ]
        
        y_pos = 2
        for commodity, desc in commodities:
            # 商品名称
            name_box = slide.shapes.add_textbox(Inches(1), Inches(y_pos), Inches(3), Inches(0.8))
            name_frame = name_box.text_frame
            name_frame.text = commodity
            name_frame.paragraphs[0].font.size = Pt(18)
            name_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            name_frame.paragraphs[0].font.bold = True
            
            # 描述
            desc_box = slide.shapes.add_textbox(Inches(4.5), Inches(y_pos), Inches(7.5), Inches(0.8))
            desc_frame = desc_box.text_frame
            desc_frame.text = desc
            desc_frame.paragraphs[0].font.size = Pt(14)
            desc_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            
            y_pos += 1
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "解释商品代币化的技术实现和优势"
        
    def create_ai_rewards_slide(self):
        """创建AI ETH存储奖励机制幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "AI 量化 ETH 存储奖励机制"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 机制说明
        mechanisms = [
            "策略池：AI算法自动选择最优收益策略",
            "Epoch结算：每24小时为一个结算周期",
            "收益分配：根据存储量和时长计算奖励",
            "风险控制：多重签名+时间锁保护资金安全"
        ]
        
        y_pos = 2
        for mechanism in mechanisms:
            # 创建要点
            point_box = slide.shapes.add_textbox(Inches(1), Inches(y_pos), Inches(11), Inches(0.8))
            point_frame = point_box.text_frame
            point_frame.text = mechanism
            point_frame.paragraphs[0].font.size = Pt(16)
            point_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            
            y_pos += 0.9
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "详细技术规范和收益计算方式"
        
    def create_tech_architecture_slide(self):
        """创建技术架构幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "技术架构与合约安全"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 架构组件
        components = [
            ("智能合约", "Solidity 0.8.x, 100%开源可审计"),
            ("预言机", "Chainlink + 多节点聚合"),
            ("前端", "React + Web3.js, IPFS部署"),
            ("后端", "Node.js + PostgreSQL, 高可用架构"),
            ("安全审计", "CertiK + Trail of Bits双重审计")
        ]
        
        y_pos = 2
        for component, desc in components:
            # 组件名称
            comp_box = slide.shapes.add_textbox(Inches(1), Inches(y_pos), Inches(3), Inches(0.8))
            comp_frame = comp_box.text_frame
            comp_frame.text = component
            comp_frame.paragraphs[0].font.size = Pt(18)
            comp_frame.paragraphs[0].font.color.rgb = self.colors['accent']
            comp_frame.paragraphs[0].font.bold = True
            
            # 描述
            desc_box = slide.shapes.add_textbox(Inches(4.5), Inches(y_pos), Inches(7.5), Inches(0.8))
            desc_frame = desc_box.text_frame
            desc_frame.text = desc
            desc_frame.paragraphs[0].font.size = Pt(14)
            desc_frame.paragraphs[0].font.color.rgb = self.colors['text_secondary']
            
            y_pos += 1
            
        # Speaker Notes
        notes_slide = slide.notes_slide
        notes_slide.notes_text_frame.text = "强调安全性和去中心化特性"
        
    def create_team_roadmap_slide(self):
        """创建团队和路线图幻灯片"""
        slide_layout = self.prs.slide_layouts[6]
        slide = self.prs.slides.add_slide(slide_layout)
        
        background = slide.background
        background.fill.solid()
        background.fill.fore_color.rgb = self.colors['background']
        
        # 标题
        title_box = slide.shapes.add_textbox(Inches(1), Inches(0.5), Inches(11.33), Inches(1))
        title_frame = title_box.text_frame
        title_frame.text = "团队与路线图"
        title_frame.paragraphs[0].font.size = Pt(32)
        title_frame.paragraphs[0].font.color.rgb = self.colors['text_primary']
        title_frame.paragraphs[0].font.bold = True
        
        # 团队信息
        team_box = slide.shapes.add_textbox(Inches(1), Inches(1.8), Inches(5), Inches(2.5))
        team_frame = team_box.text_frame
        team_frame.text = "核心团队："
        team_frame.paragraphs[0].font.size = Pt(20)
        team_frame.paragraphs[0].font.color.rgb = self.colors['accent']
        team_frame.paragraphs[0].font.bold = True
        
        team_members = [
            "• 创始人：前Binance技术总监